package com;

import com.fz.entity.User;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Z-C-Y on 2018-02-05.
 */
public class Demo {
    @Test
    public void aa(){
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
       User u =  ctx.getBean("user", User.class);
       System.out.println(u);




    }
}
